import math
def is_perfect_square(n):
    if n<0:
        return False
    sqrt_n=int(math.sqrt(n))
    return sqrt_n*sqrt_n==n
result=[]
for i in range(-1000, 2000):
    if is_perfect_square(i+100) and is_perfect_square(i+268):
        result.append(i)
print("满足条件的数有:",result)
